package cn.itsource.system.mapper;





import cn.itsource.system.domain.Menu;
import cn.itsource.system.domain.Permission;
import cn.itsource.system.domain.Role;
import cn.itsource.system.query.RoleQuery;

import java.util.List;

public interface RoleMapper {
    void add(Role role);
    void update(Role role);
    void delete(Long id);   
    Role getOne(Long id);
    List<Role> getAll();

    void patchDelete(Long[] ids);

    List<Role> pageQuery(RoleQuery query);

    List<Permission> getPermissionsById(Role role);
    List<Menu> getMenusById(Role role);

    void delPermissions(Long id);

    void delMenus(Long id);

    void addMenus(Role role);

    void addPermissions(Role role);
}
